import request from '@/utils/request'

// 查询品牌分类关联列表
export function listCategoryBrand(query) {
  return request({
    url: '/mall/categoryBrand/list',
    method: 'get',
    params: query
  })
}

// 按照分类id获取分组和属性
export function queryListByCatelogId(catalogId) {
  return request({
    url: '/mall/categoryBrand/queryListByCatelogId/' + catalogId,
    method: 'get'
  })
}



// 新增品牌分类关联
export function addCategoryBrand(data) {
  return request({
    url: '/mall/categoryBrand',
    method: 'post',
    data: data
  })
}



// 删除品牌分类关联
export function delCategoryBrand(id) {
  return request({
    url: '/mall/categoryBrand/' + id,
    method: 'delete'
  })
}

// 导出品牌分类关联
export function exportCategoryBrand(query) {
  return request({
    url: '/mall/categoryBrand/export',
    method: 'get',
    params: query
  })
}
